package com.project.web.feign.fallback;

import com.project.web.feign.UserClient;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wyy
 * @date 2019-09-17 22:04
 */
public class UserClientFallbackImpl implements UserClient {


    /**
     *
     * 回调函数实现
     * @param phone
     * @return
     */
    @Override
    public Map<String, Object> getByPhone(String phone) {
        Map<String, Object> returnMap = new HashMap<>();
        returnMap.put("flag", "调用失败");
        return returnMap;
    }
}
